# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=minimodem
pkgver=0.24
pkgrel=1
pkgdesc="general-purpose software audio FSK modem"
url="http://www.whence.com/minimodem"
arch="all"
license="GPL-3.0-or-later"
makedepends="autoconf automake alsa-lib-dev fftw-dev pulseaudio-dev libsndfile-dev"
subpackages="$pkgname-doc"
source="https://github.com/kamalmostafa/minimodem/archive/refs/tags/minimodem-$pkgver-1.tar.gz"
builddir="$srcdir/minimodem-minimodem-$pkgver-1"
options="!check" # tests fail in CI

build() {
	autoreconf -i
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
4a60a13596adbebc2b0b63579b037b595221f1ba7ede33e0e74d8866ffd786f2a9504e01c9ff06e136af5e1a6f0a43940e7d3650e19a0964bc1fc9ba231b437c  minimodem-0.24-1.tar.gz
"
